@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/system/exam/exam_edit.js"]}){
<form id="userForm" lay-filter="userForm" class="layui-form model-form">
    <input name="examId" id="examId" type="hidden"/>
    <input name="createUser" id="createUser" type="hidden"/>
    <div class="layui-form-item">
        <label class="layui-form-label">名称<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="examTitle" placeholder="请输入名称" type="text"
                   class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">考试月份<span style="color: red;">*</span></label>
        <div class="layui-input-inline">
            <select name="examMonthId" id="examMonthId" ></select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">考试专业<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="examMajor" placeholder="请输入考试专业" type="text"
                   class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">考试场地<span style="color: red;">*</span></label>
        <div class="layui-input-inline">
            <select name="examPlaceId" id="examPlaceId" ></select>
        </div>
    </div>
    <div class="layui-form-item" id="area-picker">
        <div class="layui-form-label">考试地址</div>
        <div class="layui-input-inline" style="width: 200px;">
            <select name="examProvince" class="province-selector" lay-filter="province-1">
                <option value="">请选择省</option>
            </select>
        </div>
        <div class="layui-input-inline" style="width: 200px;">
            <select name="examCity" class="city-selector" lay-filter="city-1">
                <option value="">请选择市</option>
            </select>
        </div>
        <div class="layui-input-inline" style="width: 200px;">
            <select name="examCounty" class="county-selector" lay-filter="county-1">
                <option value="">请选择区</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">详细地址</label>
        <div class="layui-input-block">
            <textarea name="examAddress" placeholder="请输入详细地址" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">考试时间/内容<span style="color: red;">*</span></label>
        <input name="examContent" id="examContent" type="hidden"/>
        <button id="btn" type="button" class="layui-btn layui-btn-danger"><i class="layui-icon">&#xe608;</i>增加</button>
    </div>
    <div id="content"></div>
    <div class="layui-form-item">
        <label class="layui-form-label">考点费<span style="color: red;">*</span></label>
        <div class="layui-input-inline">
            <select name="examPlace" id="examPlace" lay-filter="examPlace" lay-verify="required">
                <option value="">请选择</option>
                <option value="0">公共考点</option>
                <option value="1">付费考点</option>
            </select>
        </div>
        <div class="layui-inline" id="placeCost" style="display: none">
            <div class="layui-form-mid">价格</div>
            <div class="layui-input-inline" >
                <input name="examPlaceCost" id="examPlaceCost"
                       placeholder="请输入价格" type="text" class="layui-input" />
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">考务费<span style="color: red;">*</span></label>
        <div class="layui-input-inline">
            <select name="examService" id="examService" lay-filter="examService" lay-verify="required">
                <option value="">请选择</option>
                <option value="0">免费</option>
                <option value="1">付费</option>
            </select>
        </div>
        <div class="layui-inline" id="serviceCost" style="display: none">
            <div class="layui-form-mid">价格</div>
            <div class="layui-input-inline" >
                <input name="examServiceCost" id="examServiceCost"
                       placeholder="请输入价格" type="text" class="layui-input" />
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">状态<span style="color: red;">*</span></label>
        <div class="layui-input-block" style="width: 150px">
            <select name="soldOut" lay-verify="required">
                <option value="">请选择</option>
                <option value="0">下架</option>
                <option value="1">上架</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <textarea placeholder="请输入备注" name="remarks" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>

</form>
@}
